import Vue from 'vue';
import Router from 'vue-router';

import Index from '@/pages/Index';
import List from '@/pages/List';
import Detail from '@/pages/Detail';
import City from '@/pages/City';
import Search from '@/pages/Search';
import SmsLogin from '@/pages/SmsLogin';
import PwdLogin from '@/pages/PwdLogin';
import Registration from '@/pages/Registration';
import My from '@/pages/My';
import Plan from '@/pages/Plan';
import UserProfile from '@/pages/UserProfile';
import AccountManagement from '@/pages/AccountManagement';
import About from '@/pages/About'
import News from '@/pages/News'
import NewsDetail from '@/pages/NewsDetail';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
      path: '/list',
      name: 'List',
      component: List
    },
    {
      path: '/detail',
      name: 'Detail',
      component: Detail
    },
    {
      path: '/city',
      name: 'City',
      component: City
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },
    {
      path: '/',
      name: 'SmsLogin',
      component: SmsLogin
    },
    {
      path: '/pwdLogin',
      name: 'PwdLogin',
      component: PwdLogin
    },
    {
      path: '/registration',
      name: 'Registration',
      component: Registration
    },
    {
      path: '/my',
      name: 'My',
      component: My
    },
    {
      path: '/plan',
      name: 'Plan',
      component: Plan
    },
    {
      path: '/userProfile',
      name: 'UserProfile',
      component: UserProfile
    },
    {
      path: '/accountManagement',
      name: 'AccountManagement',
      component: AccountManagement
    },
    {
      path: '/about',
      name: 'About',
      component: About
    },
    {
      path: '/news',
      name: 'News',
      component:News
    },
    {
      path: '/newsDetail',
      name: 'NewsDetail',
      component:NewsDetail
    }
  ]
});
